<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html>
<html>
<head>
    <title>卫生局  医疗机构账户审核</title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp"%>
    <style type="text/css">
        div.group-info {
            margin-top: 10px !important;
            margin-bottom: 0px !important;
        }
        input.innerInput {
            width: 98%;
        }
    </style>
</head>
<body class="skin-blue sidebar-mini fixed skin-blue-light-frame">
    <section class="content-header">
        <h1>医疗机构账户审核</h1>
        <ol class="breadcrumb">
            <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i>首页</a></li>
            <li class="active"><a href="#">账户管理</a></li>
            <li class="active"><a href="#">医疗机构账户管理</a></li>
            <li class="active"><a href="#">医疗机构账户审核</a></li>
        </ol>
     </section>
     
     
   
    
    <section class="content">
        <div class=" box box-success">
            <div class="box-body">
                <div class=" form-inline">
        
                   <div class="form-group form-group-xs">
                                                                            银行账号： <input class="form-control" type="text" id="bankAcctNo" name="bankAcctNo" placeholder="银行账号" />
                   </div>
                   <div class="form-group form-group-xs">
                                                                            开户人： <input class="form-control" type="text" id="acctHolder"  name="acctHolder" placeholder="开户人" />
                   </div>
                  <div class="form-group form-group-xs">
                                                                 审核状态： 
                      <select class="form-control"  id="auditStatus" name="auditStatus" >
                          <option value="">请选择</option>
                          <option value="0">未审核</option> 
                          <option value="1">通过</option>
                          <option value="2">不通过</option>
                      </select>
                   </div>
                    
                   <button type="button" onclick="gridSerch();" class="btn btn-success btn-sm">查询</button>
                    
                </div>
            </div>
        </div>
        
        <table class="jqgrid" id="gridlist"></table>
        <div id="gridpage"></div>
        
         
        
        <form action="toHospitalAcctInfoEdit.html" method="post" id="BankForm">
            <input type="hidden" id="bankAcctId" name="bankAcctId">
        </form>
   </section>
    
   <%@ include file="/WEB-INF/component/commonJS.jsp"%>
   <script type="text/javascript">
        $(function() {
            $("#gridlist").jqGrid(
            {   url : "getAuditAcctInfoHospCheck.html",
                mtype : "POST",
                datatype : "json",
                autowidth : true,
               // shrinkToFit : false,
                height : 255,
                colNames : [ '账户id','机构编号','机构名称 ','银行账号id','账户id','银行账号','开户人 ','开户行 ','开户行行号 ','开户行行名','操作 '],
                colModel : [
                            {name : 'orgId',index : 'orgId',hidden : true , width : 100,align : "center"},
                            {name : 'orgCode',index : 'orgCode',width : 120,align : "center"},  
                            {name : 'orgName',index : 'orgName',width : 160,align : "left"}, 
		                    {name : 'bankAcctId',index : 'bankAcctId', hidden : true,width : 100,align : "center", sortable:false},
		                    {name : 'settleAcctId',index : 'settleAcctId',hidden : true , width : 100,align : "center", sortable:false},
		                    {name : 'bankAcctNo',index : 'bankAcctNo', width : 160,align : "center", sortable:false},   
		                    {name : 'acctHolder',index : 'acctHolder',width : 80,align : "center", sortable:false}, 
		                    {name : 'depositBank',index : 'depositBank', hidden:true,width : 120,align : "center", sortable:false},
		                    {name : 'depositBankNo',index : 'depositBankNo',width : 120,align : "center", sortable:false},
		                    {name : 'depositBankName',index : 'depositBankName',width : 200,align : "left", sortable:false},
		                    {name : 'order',index : 'order',width : 180,align : "center", sortable:false,
		                        formatter:function(val, opts,rowdata) {
		                            var str ="";
		                            str =  "<a href='toAuditHospBankAcctTransList.html?bankAcctId=" +rowdata.bankAcctId  + "'>审核</a>";
		                            return str
		                        }
		                    }
                ],
                rowNum : 20,
                rowList : [10, 20, 50,100],
                rownumbers : true,
                pager : "#gridpage",
                viewrecords : true,
                caption : "医疗机构账户审核列表",
                jsonReader : {
                    repeatitems : false,
                    id : "ids"
                }
            });
            $("#gridlist").jqGrid('navGrid', '#gridpage', {add : false,edit : false,del : false,search : false,refresh : false});
            $(window).trigger("resize");
        });
        
           function getFoucs(obj, rowId) {
               var text = $.trim($(obj).val());
               if (text != null && text != "") {
                   var $checkbox = $("#jqg_gridlist_" + rowId);
                   if ($checkbox.is(":not(:checked)")) {
                       $("#gridlist").setSelection(rowId);
                   }
               }
           }
           
           //查询
           function gridSerch() {
               var bankAcctNo = $.trim($("#bankAcctNo").val());
               var acctHolder = $.trim($("#acctHolder").val());
               var auditStatus = $.trim($("#auditStatus").val());
               $("#gridlist").jqGrid('setGridParam',{  
                   datatype:'json',
                   postData:{
                       "bankAcctNo":bankAcctNo,
                       "acctHolder":acctHolder,
                       "auditStatus":auditStatus
                   },
                   page:1
               }).trigger("reloadGrid"); //重新载入  
           }
           
           
    </script>
</body>
</html>